#ifndef MY_HUD_H
#define MY_HUD_H

#include <string>
#include "cg/cg.h"
#include "FreeImage.h"
#include "MyPeanut.h"
#include "ShooterManager.h"

namespace PeanutQuest {

	class MyHUD : public cg::Entity,
		public cg::IDrawListener,
		public cg::IUpdateListener
	{
	private:
		int _damage, _miliseconds, _seconds, _minutes, _life1, _x1, _time;

		MyPeanut* _peanut;
		ShooterManager* _sm;

	public:
		MyHUD(std::string id);
		~MyHUD();
		void init();
		int initSec();
		int initMin();
		void drawOverlay();
		void drawBitmapString(std::string s, GLdouble x, GLdouble y, void* f);
		std::string IntToStr(int n);
		void update(unsigned long elapsed_millis);
		void reset();
	};
}

#endif
